package com.example.intenttrial;

import android.app.Application;

public class TrialApplication extends Application {
	private static int counter;
	private String text = "";
	
	public int getCounter() {
		return counter;
	}
	
	public synchronized String getText() {
		return text;
	}
	
	public void clearText() {
		this.text = "";
	}
	
	public synchronized void setText(String text) {
		this.text += "\n" + text;
	}
	
	public synchronized void incrementCounter() {
		++counter;
		System.out.println("counter is " + counter);
	}
	
	public synchronized void dicrementCounter() {
		counter--;
	}
}
